package com.example.uhpocketguide;

import android.net.Uri;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.support.v4.app.NavUtils;

public class OpenArtsAndHumanitiesList extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_open_arts_and_humanities_list);
		// Show the Up button in the action bar.
		getActionBar().setDisplayHomeAsUpEnabled(true);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(
				R.menu.activity_open_arts_and_humanities_list, menu);
		return true;
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId()) {
		case android.R.id.home:
			// This ID represents the Home or Up button. In the case of this
			// activity, the Up button is shown. Use NavUtils to allow users
			// to navigate up one level in the application structure. For
			// more details, see the Navigation pattern on Android Design:
			//
			// http://developer.android.com/design/patterns/navigation.html#up-vs-back
			//
			NavUtils.navigateUpFromSameTask(this);
			return true;
		}
		return super.onOptionsItemSelected(item);
	}
	
	/** Called when the user clicks the Academy of Creative Media button */
	public void dialACM(View view) {
	    // Do something in response to button
		Intent intent = new Intent(Intent.ACTION_DIAL);
		intent.setData(Uri.fromParts("tel", "8089567736", "#")); 
		startActivity(intent); 
	}
	
	/** Called when the user clicks the American Studies button */
	public void dialAmericanStudies(View view) {
	    // Do something in response to button
		Intent intent = new Intent(Intent.ACTION_DIAL);
		intent.setData(Uri.fromParts("tel", "8089568570", "#")); 
		startActivity(intent); 
	}
	
	/** Called when the user clicks the Art button */
	public void dialArt(View view) {
	    // Do something in response to button
		Intent intent = new Intent(Intent.ACTION_DIAL);
		intent.setData(Uri.fromParts("tel", "8089568251", "#")); 
		startActivity(intent); 
	}
	
	/** Called when the user clicks the Communicology button */
	public void dialCommunicology(View view) {
	    // Do something in response to button
		Intent intent = new Intent(Intent.ACTION_DIAL);
		intent.setData(Uri.fromParts("tel", "8089568202", "#")); 
		startActivity(intent); 
	}
	
	/** Called when the user clicks the History button */
	public void dialHistory(View view) {
	    // Do something in response to button
		Intent intent = new Intent(Intent.ACTION_DIAL);
		intent.setData(Uri.fromParts("tel", "8089568486", "#")); 
		startActivity(intent); 
	}
	
	/** Called when the user clicks the Music button */
	public void dialMusic(View view) {
	    // Do something in response to button
		Intent intent = new Intent(Intent.ACTION_DIAL);
		intent.setData(Uri.fromParts("tel", "8089567756", "#")); 
		startActivity(intent); 
	}
	
	/** Called when the user clicks the Philosophy button */
	public void dialPhilosophy(View view) {
	    // Do something in response to button
		Intent intent = new Intent(Intent.ACTION_DIAL);
		intent.setData(Uri.fromParts("tel", "8089568649", "#")); 
		startActivity(intent); 
	}
	
	/** Called when the user clicks the Religion button */
	public void dialReligion(View view) {
	    // Do something in response to button
		Intent intent = new Intent(Intent.ACTION_DIAL);
		intent.setData(Uri.fromParts("tel", "8089568299", "#")); 
		startActivity(intent); 
	}
	
	/** Called when the user clicks the Theatre and Dance button */
	public void dialTheatre(View view) {
	    // Do something in response to button
		Intent intent = new Intent(Intent.ACTION_DIAL);
		intent.setData(Uri.fromParts("tel", "8089567677", "#")); 
		startActivity(intent); 
	}

}
